﻿<%@ Page Language="c#" CodeBehind="USBKey_setup.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.USBKey.USBKey_setupPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>USBKey_setup</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
  <script type="text/javascript">
  //<!--
  alert( "The calendar.js/meizzDate.js is deprecated! Use Ajax Toolkit instead." );
  //-->
  <%--<script language="JavaScript" src="../../Css/meizzDate.js"></script>
  <script language="JavaScript" src="../../Css/calendar.js"></script>--%>
  <script language="javascript">
  //<!--
  var t = false;
  function selectAll(){
    var nodes = document.getElementsByTagName("input");
    t = !t;
    for(var i=0; i<nodes.length; i++)
    {
      var node = nodes[i];
      if(node.type === "")
      {
        node.checked = t;
      }
    }
  }
		    
  //设置Datagrid列宽可以被拖动的函数
  function SyDG_moveOnTd(td)
  {
    if(event.offsetX>td.offsetWidth-10)
	    td.style.cursor='w-resize';
    else
	    td.style.cursor='default';

    if(td.mouseDown!=null && td.mouseDown==true)
    {
	    if(td.oldWidth+(event.x-td.oldX)>0)
		    td.width=td.oldWidth+(event.x-td.oldX);
	    td.style.width=td.width;
	    td.style.cursor='w-resize';

	    table=td;
	    while(table.tagName!='TABLE') table=table.parentElement;
	    table.width=td.tableWidth+(td.offsetWidth-td.oldWidth);table.style.width=table.width;
    }
  }
  function SyDG_downOnTd(td)
  {
    if(event.offsetX>td.offsetWidth-10)
    {
	    td.mouseDown=true;
	    td.oldX=event.x;
	    td.oldWidth=td.offsetWidth;
	    table=td;while(table.tagName!='TABLE')table=table.parentElement;
	    td.tableWidth=table.offsetWidth;
    }
  }
  //-->
  </script>
</head>
<body ms_positioning="GridLayout">
  <form id="Form1" method="post" runat="server">
    <table id="Table1" style="z-index: 101; left: 0px; position: absolute; top: 32px" cellspacing="0" cellpadding="0" width="100%" border="0">
      <tbody>
        <tr>
          <td>
            <table class="gbtext" id="Table2" cellspacing="0" cellpadding="0" width="100%" border="0">
              <tr>
                <td align="center" width="90" background='<% Response.Write(DisplayType==1?"../../images/maillistbutton1.gif":"../../images/maillistbutton2.gif"); %>' height="24" style="width: 90px">
                  <asp:LinkButton ID="lbOnline" runat="server" CssClass="Newbutton">没有KEY</asp:LinkButton>
                </td>
                <td align="center" width="90" background='<% Response.Write(DisplayType==0?"../../images/maillistbutton1.gif":"../../images/maillistbutton2.gif"); %>' height="24">
                  <asp:LinkButton ID="lbOffLine" runat="server" CssClass="Newbutton">有KEY</asp:LinkButton>
                </td>
                <td align="right"><asp:CheckBox ID="cb_selectAll" runat="server" Text="全选"></asp:CheckBox>&nbsp;
                  <asp:Button ID="cmdUsR_key" runat="server" CssClass="redbuttoncss" Text="开始使用KEY" Width="100px"></asp:Button>&nbsp;<asp:Button ID="cmdNotUse_key" runat="server" CssClass="redbuttoncss" Text="停止使用KEY" Width="100px"></asp:Button>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td>
            <asp:DataGrid ID="dbStaffList" runat="server" Width="100%" CellPadding="3" BackColor="White" BorderStyle="None" BorderColor="#93BEE2" BorderWidth="1px" PageSize="15" AutoGenerateColumns="False" AllowPaging="True" DataKeyField="Staff_ID" OnPageIndexChanged="DataGrid_PageChanged">
              <SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
              <AlternatingItemStyle Font-Size="X-Small" BackColor="#E8F4FF"></AlternatingItemStyle>
              <ItemStyle Font-Size="X-Small" ForeColor="#003399" BackColor="White"></ItemStyle>
              <HeaderStyle Font-Size="X-Small" Font-Bold="True" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
              <FooterStyle Font-Size="X-Small" HorizontalAlign="Right" ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
              <Columns>
                <asp:TemplateColumn HeaderText="ID">
                  <HeaderStyle Width="20px"></HeaderStyle>
                  <ItemTemplate>
                    <asp:CheckBox ID="Staff_ID" runat="server"></asp:CheckBox>
                  </ItemTemplate>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="RealName" HeaderText="真实姓名"></asp:BoundColumn>
                <asp:BoundColumn DataField="Position_Name" HeaderText="所在职位">
                  <HeaderStyle Width="150px"></HeaderStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="RQ" HeaderText="注册日期">
                  <HeaderStyle Width="80px"></HeaderStyle>
                </asp:BoundColumn>
              </Columns>
              <PagerStyle Font-Size="X-Small" HorizontalAlign="Right" ForeColor="#003399" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
            </asp:DataGrid>
          </td>
        </tr>
      </tbody>
    </table>
    <table id="Table3" style="z-index: 102; left: 0px; position: absolute; top: 0px" bordercolor="#111111" height="1" cellspacing="0" cellpadding="0" width="100%" border="0">
      <tr height="30">
        <td class="GbText" width="18" background="../../Images/treetopbg.jpg" bgcolor="#c0d9e6" style="width: 18px"><font color="#003366" size="3"><IMG alt="" src="../../DataImages/usbkey2.gif"></font></td>
        <td class="GbText" background="../../Images/treetopbg.jpg" bgcolor="#c0d9e6"><font color="#006699">USB_KEY 管理</font></td>
      </tr>
    </table>
  </form>
</body>
</html>
